package spatialmarketplace.cem.dao;

import java.util.List;
import spatialmarketplace.cem.model.Group;
import spatialmarketplace.cem.model.GroupMember;
import spatialmarketplace.cem.model.User;
/**
 * Class that declares all the interfaces to implement the DAO
 * @author Laura Andreina
 */
public interface GroupDao {
    
    public List<Group> read(Integer userId);
    public List<User> readUsers(Integer id);
    public Integer save(Group group);
    public void saveGroupMembers(List<User> users, Integer groupId, Integer currentUserId);
    public List<Group> search(String keywords, Integer userId);
    //public List<Group> search(String keyword);
    //public User retrieveUserProfile();
    public List<Group> getMyGroups(Integer id);
    public void joinGroup(Integer groupId, Integer userId);
    public Integer fetchGroupId();
    public List<GroupMember> retrieveGroupMembers(Integer groupId, Integer usrId);
    public void retrieveNotificationList();
    public String fetchGroupName(Integer groupId);
    public User memberDetails(Integer userId, Integer groupId);
   
}
